package com.gh.service;

import com.gh.entity.LendItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gh.vo.InvestVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的出借记录表 服务类
 * </p>
 *
 * @author Eric
 * @since 2021-09-06
 */
public interface LendItemService extends IService<LendItem> {

    String commitInvest(InvestVo investVo);

    String investNotify(Map<String, Object> map);

    /**
     * 根据lendId和状态查询标的出借记录
     * @param lendId
     * @param status
     * @return
     */
    List<LendItem> selectByLendId(Long lendId, Integer status);

    List<LendItem> selectByLendId(Long lendId);
}
